<template>
    <div>
        test
    </div>
</template>
<script>
export default {
    name: "test",
    props: {
        type: {
            type: Object,
            default() {
                return {
                    name: "one"
                };
            }
        }
    },
    created() {
        if (this.type.name === `one`) {
            // alert(`one`);
        } else if (this.type.name === `two`) {
            // alert(`two`);
        }
    }
};
</script>
<style>
</style>
